class LordCardListItem extends CardValueItem 
{
    public cardImg: eui.Image;
    public constructor() 
    {
        super();
        this.skinName = "CardListItemSkin";
    }

    public dataChanged(): void 
    {
        this.currentState = "up";
        if (this.data) 
        {
            this.playEffect();
        }
        else 
        {
            this.cardImg.scaleX = this.cardImg.scaleY = 1;
            this.cardImg.source = this.data ? this.getCardTexture(this.data) : "card_0_png";
        }
    }

    private playEffect(): void 
    {
        this.cardImg.scaleX = this.cardImg.scaleY = 0;
        this.cardImg.source = this.getCardTexture(this.data);
        egret.Tween.get(this.cardImg).wait(200).to({ scaleX: 1, scaleY: 1 }, 300, egret.Ease.bounceOut);
    }
}